package com.hziee.mail.model;

import java.io.Serializable;
import java.util.Objects;

/**
 * 购物车单类
 *
 * @author ZX
 */
public class SkuInfoEntity implements Serializable {

    private String goodsId;
    private String img;
    private String name;
    private String price;
    private String value;
    private String danxuan;
    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDanxuan() {
        return danxuan;
    }

    public void setDanxuan(String danxuan) {
        this.danxuan = danxuan;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SkuInfoEntity)) return false;
        SkuInfoEntity that = (SkuInfoEntity) o;
        return Objects.equals(goodsId, that.goodsId) &&
                Objects.equals(img, that.img) &&
                Objects.equals(name, that.name) &&
                Objects.equals(price, that.price) &&
                Objects.equals(value, that.value) &&
                Objects.equals(danxuan, that.danxuan) &&
                Objects.equals(userId, that.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsId, img, name, price, value, danxuan, userId);
    }

    @Override
    public String toString() {
        return "SkuInfoEntity{" +
                "goodsId='" + goodsId + '\'' +
                ", img='" + img + '\'' +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", value='" + value + '\'' +
                ", danxuan='" + danxuan + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
